/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.bean.app.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author Yami
 */
@Data
@ApiModel(value= "购物车物品参数")
public class OrderItemParam {

    @NotNull(message = "产品ID不能为空")
    @ApiModelProperty(value = "产品ID",required=true)
    private Long prodId;

    @NotNull(message = "skuId不能为空")
    @ApiModelProperty(value = "skuId",required=true)
    private Long skuId;

    @NotNull(message = "产品数量不能为空")
    @Min(value = 1,message = "产品数量不能为空")
    @ApiModelProperty(value = "产品数量",required=true)
    private Integer prodCount;

    @NotNull(message = "店铺id不能为空")
    @ApiModelProperty(value = "店铺id",required=true)
    private Long shopId;

    @ApiModelProperty(value = "推广员使用的推销卡号")
    private String distributionCardNo;

    @ApiModelProperty(value = "套餐id")
    private Long comboId;

    @ApiModelProperty(value = "搭配商品Sku id列表")
    private List<Long> matchingSkuIds;
}
